#习题五 求n的阶乘
x = int(input())
a = 1
for i in range(1, x+1):
    a = a*i
print("product = %d" % float(a))